<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('招聘列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="btn-group-sm" id="toolbar" role="group">
            <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="hcy:posting:add">
                <i class="fa fa-plus"></i> 新增
            </a>
        </div>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">

    var datas = [[${@dict.getType('sys_normal_disable')}]];
    var prefix = ctx + "hcy/posting";

    $(function() {
        var options = {
            url: prefix + "/list",
            createUrl: prefix + "/add",
            modalName: "岗位",
            columns: [{
                checkbox: true
            },
                {
                    field: 'postingId',
                    title: '申请调整的员工Id'
                },
                {
                    field: 'postingName',
                    title: '申请职位调整的员工姓名',
                },
                {
                    field: 'postingStatus',
                    title: '审批状态',
                },
                {
                    field: 'postingOldjob',
                    title: '原职位',
                },
                {
                    field: 'postingNewjob',
                    title: '申请的新职位',
                },
            ]};
        $.table.init(options);
    });
</script>
</body>
</html>